<%-- 
    Document   : ConsultaEmprestimos
    Created on : Mar 5, 2010, 9:49:16 AM
    Author     : bruno
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Emprestimos Efetuados</title>
    </head>
    <body>

    <h1>Consulta de Emprestimos Efetuados</h1>

    <table id="emprestimosTable" border="3">
        <tr>
            <td>
                <table border="1">
                    <tr >
                        <th bgcolor=>ID</th>
                        <th bgcolor=>Item</th>
                        <th bgcolor=>Pessoa</th>
                    </tr>

                    <c:forEach var="emprestimo" begin="0" items="${requestScope.emprestimos}">
                        <tr>
                            <td>${emprestimo.id}&nbsp;&nbsp;</td>
                            <td>${emprestimo.item.title}&nbsp;&nbsp;</td>
                            <td>${emprestimo.pessoa.name}&nbsp;&nbsp;</td>
                        </tr>
                    </c:forEach>
                </table>
            </td>

            <td>
                <table border="1">
                    <tr>
                        <th bgcolor=>Retirada</th>
                    </tr>

                    <c:forEach var="dateOut" begin="0" items="${requestScope.empDateOut}">
                        <tr>
                            <td>${dateOut}&nbsp;&nbsp;</td>
                        </tr>
                    </c:forEach>
                </table>
            </td>

            <td>
                <table border="1" >
                    <tr>
                        <th bgcolor=>Devolução</th>
                    </tr>

                    <c:forEach var="dateIn" begin="0" items="${requestScope.empDateIn}">
                        <tr>
                            <td>${dateIn}&nbsp;&nbsp;</td>
                        </tr>
                    </c:forEach>
                </table>
            </td>

        </tr>
    </table>
    <a href="index.jsp"><strong>Voltar para o início</strong></a>
</body>
</html>
